﻿{% extends "header.html" %} {# <html><body> #} 

{% block content %}
<form action="/admin/postnews" method="POST" enctype="multipart/form-data">
  <textarea name="newspost" id="newspost" style="width:70%; height:100px;"></textarea><br /><br />
  <input type="button" value="preview" onclick="document.getElementById('preview').innerHTML = document.getElementById('newspost').value.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br>')" />
  <input type="button" value="add linebreaks" onclick="document.getElementById('newspost').value = document.getElementById('newspost').value.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br>')" />
  <input type="submit" name="submit" value="Submit">
</form>
<br>

<div class='line'>
    <span class="bold">Update</span> ({% now "d M Y" %}): <br/><br style='font-size:8px;'/>
    <div id="preview"></div>
    <div class="comlink">show comments ▼</div>
</div>
{% endblock %}


{# </body></html> #}